import service from '@/utils/http.js'

// 获取店铺主页信息
// POST /api/Shop/getShopIndex
// 接口ID：17781501
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781501
export const getShopIndex = (params) => {
    return service({
      url: 'api/Shop/getShopIndex',
      method: 'post',
      data: params
    }) 
}
// 核销
export const comsume_cons = (params) => {
    return service({
      url: 'manage/consume/cons',
      method: 'post',
      data: params
    }) 
}

// 获取门票详情
// POST /api/Shop/getShopTicket
// 接口ID：17781502
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781502
export const getTicketDetail = (params) => {
    return service({
      url: 'api/Shop/getShopTicket',
      method: 'post',
      data: params
    }) 
}

// 创建订单
// POST /api/Shop/createOrder
// 接口ID：17781503
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781503
export const createOrder = (params) => {
    return service({
      url: 'manage/Pay/createOrder',
      method: 'post',
      data: params
    }) 
}

// 模拟支付结果
// /sass-test/public/index.php/api/court/moniPay
// 接口ID：17781506
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781506
export const moniPay = (params) => {
    return service({
      url: 'api/court/moniPay',
      method: 'post',
      data: params
    }) 
}

//sass-test/public/index.php/api/NumCard/getPriceCardForPay
// 获取金额卡
// 接口ID：17781506
// 接口地址：https://www.apifox.cn/web/project/834887/apis/api-17781506
export const getPriceCardForPay = (params) => {
    return service({
      url: 'api/NumCard/getPriceCardForPay',
      method: 'post',
      data: params
    }) 
}

// 核销记录列表  ///当天核销记录列表
export const comsume_index = (params) => {
    return service({
      url: 'manage/consume/index',
      method: 'post',
      data: params
    }) 
}

// 核销记录列表  ///当天核销记录列表
export const today = (params) => {
    return service({
      url: 'manage/consume/today',
      method: 'post',
      data: params
    }) 
}

// 扫码
export const info = (params) => {
    return service({
      url: 'manage/consume/info',
      method: 'post',
      data: params
    }) 
}
// 获取项目
export const getProject = (params) => {
    return service({
      url: 'mini/register/getProject',
      method: 'post',
      data: params
    }) 
}

// 开户注册
export const register = (params) => {
    return service({
      url: 'mini/register/register',
      method: 'post',
      data: params
    }) 
}

// 城市接口
export const getcitys = (params) => {
    return service({
      url: 'mini/register/getcitys',
      method: 'post',
      data: params
    }) 
}

// 发送验证码
export const sendCode = (params) => {
    return service({
      url: 'mini/register/sendCode',
      method: 'post',
      data: params
    }) 
}

// 员工--部门
export const getDeptSchool = (params) => {
    return service({
      url: 'mini/Emplyee/getDeptSchool',
      method: 'post',
      data: params
    }) 
}

// 添加校区
export const schoolcreate = (params) => {
    return service({
      url: 'mini/school/create',
      method: 'post',
      data: params
    }) 
}

// 校区列表
export const getSchoolList = (params) => {
    return service({
      url: 'mini/school/getSchoolList',
      method: 'post',
      data: params
    }) 
}
export const getVenueList = (params) => {
    return service({
      url: 'mini/school/getVenueList',
      method: 'post',
      data: params
    }) 
}
// 项目
export const getProjects = (params) => {
    return service({
      url: 'mini/school/getProjects',
      method: 'post',
      data: params
    }) 
}

// 项目
export const createClassRoom = (params) => {
    return service({
      url: 'mini/school/createClassRoom',
      method: 'post',
      data: params
    }) 
}
// 教师列表
export const getClassRoom = (params) => {
    return service({
      url: 'mini/school/getClassRoom',
      method: 'post',
      data: params
    }) 
}

// 项目关联的配置数据获取
export const confall = (params) => {
    return service({
      url: 'mini/project.conf/all',
      method: 'post',
      data: params
    }) 
}
// 新增保存会员
export const useradd = (params) => {
    return service({
      url: 'mini/member.user/addMember',
      method: 'post',
      data: params
    }) 
}

// 会员列表
export const userindex = (params) => {
    return service({
      url: 'mini/member.user/index',
      method: 'post',
      data: params
    }) 
}

// 删除会员
export const userdel = (params) => {
    return service({
      url: 'mini/member.user/del',
      method: 'post',
      data: params
    }) 
}

// 编辑保存会员
export const useredit = (params) => {
    return service({
      url: 'mini/member.user/editMember',
      method: 'post',
      data: params
    }) 
}

// 会员详情
export const userdetail = (params) => {
    return service({
      url: 'mini/member.user/detail_new',
      method: 'post',
      data: params
    }) 
}

// 会员拥有的卡列表
export const usercards = (params) => {
    return service({
      url: 'mini/member.user/cards',
      method: 'post',
      data: params
    }) 
}

// 会员拥有的培训列表
export const usercourses = (params) => {
    return service({
      url: 'mini/member.user/courses',
      method: 'post',
      data: params
    }) 
}

export const delSchool = (params) => {
    return service({
      url: 'mini/school/delSchool',
      method: 'post',
      data: params
    }) 
}

export const delClassRoom = (params) => {
    return service({
      url: 'mini/school/delClassRoom',
      method: 'post',
      data: params
    }) 
}
// 添加|编辑学员
export const studentsave = (params) => {
    return service({
      url: 'mini/student/save',
      method: 'post',
      data: params
    }) 
}

// 学员列表
export const studentindex = (params) => {
    return service({
      url: 'mini/student/index',
      method: 'post',
      data: params
    }) 
}

// 删除学员
export const studentdel = (params) => {
    return service({
      url: 'mini/student/del',
      method: 'post',
      data: params
    }) 
}

// 配置选项
export const studenttrain_conf = (params) => {
    return service({
      url: 'mini/conf/train_conf',
      method: 'post',
      data: params
    }) 
}

// 教练列表
export const coachindex = (params) => {
    return service({
      url: 'mini/coach/index',
      method: 'post',
      data: params
    }) 
}

// 添加|编辑教练
export const coachsave = (params) => {
    return service({
      url: 'mini/coach/save',
      method: 'post',
      data: params
    }) 
}

// 删除教练
export const coachdel = (params) => {
    return service({
      url: 'mini/coach/del',
      method: 'post',
      data: params
    }) 
}

// 配置选项
export const coachtrain_conf = (params) => {
    return service({
      url: 'mini/conf/train_conf',
      method: 'post',
      data: params
    }) 
}

// 课程类型列表
export const traincourses = (params) => {
    return service({
      url: 'mini/train.personal/courses',
      method: 'post',
      data: params
    }) 
}

// 添加|编辑课程类型
export const trainsave = (params) => {
    return service({
      url: 'mini/train.personal/save',
      method: 'post',
      data: params
    }) 
}

// 启用|禁用|删除课程类型
export const traindel = (params) => {
    return service({
      url: 'mini/train.personal/del',
      method: 'post',
      data: params
    }) 
}

// 报名产品列表
export const trainpro = (params) => {
    return service({
      url: 'mini/train.index/pro',
      method: 'post',
      data: params
    }) 
}

// 提交报名
export const trainenroll = (params) => {
    return service({
      url: 'mini/train.index/enroll',
      method: 'post',
      data: params
    }) 
}

// 单品的课包和教练列表
export const trainitems = (params) => {
    return service({
      url: 'mini/train.index/items',
      method: 'post',
      data: params
    }) 
}

// 获取规格列表
export const sku_options = (params) => {
    return service({
      url: 'mini/train.index/sku_options',
      method: 'post',
      data: params
    }) 
}

// 记账方式
export const pay_list = (params) => {
    return service({
      url: 'mini/conf/pay_list',
      method: 'post',
      data: params
    }) 
}
// 订单支付
export const orderpay = (params) => {
    return service({
      url: 'mini/order.index/pay',
      method: 'post',
      data: params
    }) 
}
// 手机号码搜索
export const getUserByPhone = (params) => {
    return service({
      url: 'mini/member.user/getUserByPhone',
      method: 'post',
      data: params
    }) 
}
// 课包列表
export const pk_list = (params) => {
    return service({
      url: 'mini/train.index/pk_list',
      method: 'post',
      data: params
    }) 
}

// 课包列表
export const traindetail = (params) => {
    return service({
      url: 'mini/train.index/detail',
      method: 'post',
      data: params
    }) 
}
export const sku_list = (params) => {
    return service({
      url: 'mini/train.index/sku_list',
      method: 'post',
      data: params
    }) 
}
export const stu_ck = (params) => {
    return service({
      url: 'mini/train.index/stu_ck',
      method: 'post',
      data: params
    }) 
}
export const sysuserindex = (params) => {
    return service({
      url: 'api/sys.user/index',
      method: 'post',
      data: params
    }) 
}
export const sysroleindex = (params) => {
    return service({
      url: 'api/sys.role/index',
      method: 'post',
      data: params
    }) 
}
export const department = (params) => {
    return service({
      url: 'api/sys.department/index',
      method: 'post',
      data: params
    }) 
}
export const venuevenues = (params) => {
    return service({
      url: 'api/venue.venue/venues',
      method: 'post',
      data: params
    }) 
}
export const getVenueProjects = (params) => {
    return service({
      url: 'api/coach.coach/getVenueProjects',
      method: 'post',
      data: params
    }) 
}
export const venueCoach = (params) => {
    return service({
      url: 'api/coach.coach/venueCoach',
      method: 'post',
      data: params
    }) 
}
export const usersave = (params) => {
    return service({
      url: 'api/sys.user/save',
      method: 'post',
      data: params
    }) 
}
export const venueSchool = (params) => {
    return service({
      url: 'api/sys.user/venueSchool',
      method: 'post',
      data: params
    }) 
}
export const venuedel = (params) => {
    return service({
      url: 'api/sys.user/del',
      method: 'post',
      data: params
    }) 
}
export const consumemode = (params) => {
    return service({
      url: 'api/consume.consume/mode',
      method: 'post',
      data: params
    }) 
}
export const formulamy = (params) => {
    return service({
      url: 'api/formula.set/my',
      method: 'post',
      data: params
    }) 
}
export const sku_info = (params) => {
    return service({
      url: 'api/train.index/sku_info',
      method: 'post',
      data: params
    }) 
}

export const formulaindex = (params) => {
    return service({
      url: 'api/formula.set/index',
      method: 'post',
      data: params
    }) 
}
export const formulasave = (params) => {
    return service({
      url: 'api/formula.set/save',
      method: 'post',
      data: params
    }) 
}
export const venueinfo = (params) => {
    return service({
      url: 'api/venue.bracelet/info',
      method: 'post',
      data: params
    }) 
}
export const consume_card = (params) => {
    return service({
      url: 'api/consume.consume/consume_card',
      method: 'post',
      data: params
    }) 
}
export const consume_ticket = (params) => {
    return service({
      url: 'api/consume.consume/consume_ticket',
      method: 'post',
      data: params
    }) 
}
export const consume_train = (params) => {
    return service({
      url: 'api/consume.consume/consume_train',
      method: 'post',
      data: params
    }) 
}
export const orderMultiPay = (params) => {
    return service({
      url: 'web/v2.order.order/orderMultiPay',
      method: 'post',
      data: params
    }) 
}
export const consumeindex = (params) => {
    return service({
      url: 'api/consume.index/index',
      method: 'post',
      data: params
    }) 
}
export const conflist = (params) => {
    return service({
      url: 'api/conf/list',
      method: 'post',
      data: params
    }) 
}
export const operator = (params) => {
    return service({
      url: 'api/conf/operator',
      method: 'post',
      data: params
    }) 
}
export const confprojects = (params) => {
    return service({
      url: 'api/conf/projects',
      method: 'post',
      data: params
    }) 
}
export const getTypes = (params) => {
    return service({
      url: 'api/conf/getTypes',
      method: 'post',
      data: params
    }) 
}
export const today_consume_record = (params) => {
    return service({
      url: 'manage/consume/today_consume_record',
      method: 'post',
      data: params
    }) 
}
export const CoachCommission = (params) => {
    return service({
      url: 'web/v2.commission.CoachCommission/index',
      method: 'post',
      data: params
    }) 
}
export const commissionedit = (params) => {
    return service({
      url: 'web/v2.commission.CoachCommission/edit',
      method: 'post',
      data: params
    }) 
}
export const commissiondel = (params) => {
    return service({
      url: 'web/v2.commission.CoachCommission/del',
      method: 'post',
      data: params
    }) 
}
export const diySelectpage = (params) => {
    return service({
      url: 'web/train.shop_train/diySelectpage',
      method: 'post',
      data: params
    }) 
}
export const commissionadd = (params) => {
    return service({
      url: 'web/v2.commission.CoachCommission/add',
      method: 'post',
      data: params
    }) 
}
export const coachsort = (params) => {
    return service({
      url: 'api/coach.coach/sort',
      method: 'post',
      data: params
    }) 
}
export const coachstatus = (params) => {
    return service({
      url: 'api/coach.coach/status',
      method: 'post',
      data: params
    }) 
}